package com.sneakxy.mybase4j.platform.beans;

import com.sneakxy.mybase4j.base.bean.BaseEntity;

import com.sneakxy.mybatis.commons.annotations.Column;
import com.sneakxy.mybatis.commons.annotations.Table;
import com.sneakxy.mybatis.commons.orm.generation.GeneratedValue;
import com.sneakxy.mybatis.commons.orm.generation.GenerationType;

import org.springframework.data.annotation.Id;

/**
 * 登录日志
 * @author 潜行的青衣
 * @see
 */
@Table("t_mb4j_loginlog")
public class LoginLog extends BaseEntity<String> {

	private final static long serialVersionUID = -1L;
	
	public final static short STATUS_SUCCESS = 1;
	
	public final static short STATUS_UNKNOWN_ACCOUNT = 0;
	
	public final static short STATUS_LOCKED_ACCOUNT = 2;
	
	public final static short STATUS_INCORRECT_CREDENTIALS = 3;

	@Id
	@Column("id")
	@GeneratedValue(strategy = GenerationType.UUID)
	private String id;

	@Column("account")
	private String account;

	@Column("extra1")
	private String extra1;

	@Column("extra2")
	private String extra2;

	@Column("extra3")
	private String extra3;

	@Column("extra4")
	private String extra4;

	@Column("logintime")
	private String logintime;

	@Column("status")
	private Short status;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getExtra1() {
		return extra1;
	}

	public void setExtra1(String extra1) {
		this.extra1 = extra1;
	}

	public String getExtra2() {
		return extra2;
	}

	public void setExtra2(String extra2) {
		this.extra2 = extra2;
	}

	public String getExtra3() {
		return extra3;
	}

	public void setExtra3(String extra3) {
		this.extra3 = extra3;
	}

	public String getExtra4() {
		return extra4;
	}

	public void setExtra4(String extra4) {
		this.extra4 = extra4;
	}

	public String getLogintime() {
		return logintime;
	}

	public void setLogintime(String logintime) {
		this.logintime = logintime;
	}

	public Short getStatus() {
		return status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

}
